#define  _CRT_SECURE_NO_WARNINGS

#include "seqlist.h"

void test()
{
	SL sl;
	sl_init(&sl);
	sl_push_front(&sl, 1);
	sl_push_front(&sl, 2);
	sl_push_front(&sl, 3);
	sl_print(sl);

	sl_push_back(&sl, 4);
	sl_push_back(&sl, 5);
	sl_push_back(&sl, 6);
	sl_print(sl);

	sl_pop_front(&sl);
	sl_print(sl);

	sl_pop_back(&sl);
	sl_print(sl);

	sl_pop_front(&sl);
	sl_print(sl);

	sl_pop_back(&sl);
	sl_print(sl);

	sl_pop_front(&sl);
	sl_print(sl);

	sl_pop_back(&sl);
	sl_print(sl);

	sl_destroy(&sl);
}

int main()
{
	test();
	return 0;
}
